import Vue from 'vue'
import VueRouter from 'vue-router'
import Register from "../views/Register.vue"
import Page_Home from "../views/Page_Home.vue"
import Login from "../views/Login.vue"
import My_Home from "../views/My_Home.vue"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'page_home',
    component: Page_Home
  },
  {
    path: '/register',
    name: 'register',
    component: Register
  },
  
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: '/my_home',
    name: 'myhome',
    component: My_Home
  },
 
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
